//
// Created by dongbo01 on 5/12/17.
//

#include "job.h"
#include "z_hglog.h"
#include <assert.h>
#include <iostream>
#include <map>
#include <memory>
#include <tuple>


std::atomic_llong JOB::num = {0};

JOB::~JOB() {
    num--;
}

JOB::JOB() {
    num++;
}

JOB::JOB(int _xyid, int _appid, int _groupid, int _areaid, std::string _topic, std::string _tab, std::string _content) {
    num++;

    xyid = _xyid;
    appid = _appid;
    areaid = _areaid;
    groupid = _groupid;

    snprintf(topic, 256, "%s", _topic.c_str());
    snprintf(tabname, 256, "%s", _tab.c_str());
    snprintf(content, 2000, "%s", _content.c_str());
    slen = _content.length();
}


